package com.slmxz.tms.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Set;

/**
 * 用户登录视图对象
 * @author sunyao
 * @Date 2024/10/20
 */
@Schema(description ="当前登录用户视图对象")
@Data
public class UserInfoVO {

    @Schema(description="用户ID")
    private Long userId;

    private Long id;

    @Schema(description="用户名")
    private String username;

    @Schema(description="用户昵称")
    private String nickname;

    @Schema(description="头像地址")
    private String avatar;
    //公司ID
    private Long companyId;
    //数据权限编号
    private String scopeNo;
    //是否具备所有子公司数据的权限,默认是N没有
    private String allScopeFlag;
    //部门ID
    private Long deptId;

    @Schema(description="用户角色编码集合")
    private Set<String> roles;

    @Schema(description="用户权限标识集合")
    private Set<String> perms;


}
